using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace DevUI
{
    public partial class CreateBuyDialog : Form
    {
        public String BuyTitle
        {
            get
            {
                return uiBuyTitleTextBox.Text;
            }
        }

        public String BuyDescription
        {
            get
            {
                return uiBuyDescrTextBox.Text;
            }
        }

        public int BuySeverity
        {
            get
            {
                return (int)uiBuySeverity.Value;
            }
        }

        public double BuyPrice
        {
            get
            {
                return (double)uiBuyPriceUpDown.Value;
            }
        }

        public DateTime BuyDeadLine
        {
            get
            {
                return uiBuyDedLineCalendar.SelectionStart;
            }
        }

        public CreateBuyDialog()
        {
            InitializeComponent();
        }

        private void uiOkButton_Click(object sender, EventArgs e)
        {
            DialogResult = System.Windows.Forms.DialogResult.OK;
        }
    }
}
